package com.hnichr.ump.autoconfigure.onetime;

import com.hnichr.ump.common.Constant;
import com.hnichr.ump.common.vo.ModuleVO;
import com.hnichr.ump.onetime.OneTimeConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@ConditionalOnClass(OneTimeConfiguration.class)
@Import(OneTimeConfiguration.class)
@Slf4j
public class OneTimeAutoConfiguration {

	public OneTimeAutoConfiguration() {
		log.info("[AutoConfiguration==>]:One Time Module Loading");
		Constant.addModule(new ModuleVO("One Time","一次性功能模块"));
	}
}
